/*
* qiudot.com Inc.
* Copyright (c) 2019 All Rights Reserved.
* create by qiudot
* date:2019-09-11
*/
package com.lora.entity;


import com.acooly.core.common.domain.AbstractEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 温湿度设备数据 Entity
 *
 * @author qiudot
 * Date: 2019-09-11 23:46:50
 */
@Entity
@Table(name = "temperature_humidity")
@Getter
@Setter
public class Temperaturehumidity extends AbstractEntity {

    /**
     * 设备ID
            
     */
	@Size(max = 36)
    private String equipmentid;

    /**
     * 原始数据
     */
	@Size(max = 128)
    private String datastring;

    /**
     * 温度
     */
    private BigDecimal temperature;

    /**
     * 湿度
     */
    private BigDecimal humidity;

    /**
     * 电压
     */
    private BigDecimal voltage;

    /**
     * 电压状态
     */
    private BigDecimal voltageState;

    private boolean alarmFlag = false;

}
